package cn.com.fuhuitong.app

const val WX_APP_ID = "wxd861e8127a1bc1c1"//微信appId

//const val BASE_HTTP_URL = "http://syjk.icarefz.cn" // 测试环境1
const val BASE_HTTP_URL = "http://www.fuhuitong.com.cn"   // 正式环境1

fun getImageUrl(url: String): String {
    if (url.isEmpty())
        return ""
    val isHttps: Boolean = url.substring(0, 5).contains("http") ||
            url.substring(0, 5).contains("https")
    return "${if (isHttps) "" else BASE_HTTP_URL}${url}"
}